package com.zh.demo.redislock.controler;

import com.zh.demo.redislock.services.RedisLockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LockRequest {

    @Autowired
    RedisLockService redisLockService;

    @PostMapping("/demo/redislock")
    public void GetRedisLock(){
        //redisLockService.GetRedisLock();
        //redisLockService.GetRedisLockTimeOut();
        redisLockService.GetUniqueRedisLockTimeOut();
    }
}
